package dao;

import java.util.List;

import bean.Journey;
import bean.ReservationDetails;
import exception.DAOException;

public interface JourneyDAO {
	
	List<Journey> reserve(int numTickets, Journey[] journey, long personId) throws DAOException;
	
	Journey issueTicket(long confirmationNumber) throws DAOException;

	
	List<Journey> viewAllJourney() throws DAOException;
	List<ReservationDetails> viewAllPassengers(long flightId,String journeyDate)throws DAOException;
	
	List<ReservationDetails> viewAllReservation(long confirmationNumber) throws DAOException;

	
	void deleteReservation(long confirmationNumber) throws DAOException;
	
	List<Journey> viewReservationsForTraveller(long personId) throws DAOException;
	
	List<Journey> viewJourneyByDate() throws DAOException;


}

